{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
thread 'SPOILER' 

:SPOILER_13
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @SPOILER_13 

:SPOILER_33
wait 0 
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #GLENDALE)
else_jump @SPOILER_33 
03C0: 0@ = actor $PLAYER_ACTOR car
wait 100
068A: set_car 0@ repair_door 4

:SPOILER_64
wait 0 
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #GLENDALE)
else_jump @SPOILER_553 

02E3: 1@ = car 0@ speed 
wait 0 
if 
  1@ > 27.5 
else_jump @SPOILER_64 

wait 0 
08A6: set_car 0@ componentA 4 rotation_to 0.05 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.1 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.15 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.2 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.25 

//----

:SPOILER_200
wait 0 
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #XA21)
else_jump @SPOILER_553

wait 0 
02E3: 1@ = car 0@ speed 
wait 0 
if 
  26.5 > 1@ 
else_jump @SPOILER_200

08A6: set_car 0@ componentA 4 rotation_to 0.2 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.15 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.1 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.05 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.0 
jump @SPOILER_64

:SPOILER_553
Car.RemoveReferences(0@)
jump @SPOILER_33 
0A93: end_custom_thread 